<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /*
            offsetTop/Left/Width/Height/Parent
            t/l
                在offsetParent不为body时
                t/l = offsetParent 左内边距 到元素的距离
                offsetParent 为body时
                t/l = 当前窗口可视区域 到元素的距离
        */
    </script>
</body>
</html>